#include "./av_processor.h"

AvProcessor::AvProcessor()
{
	Init();
}

AvProcessor::~AvProcessor()
{}

void AvProcessor::Init()
{
	avcodec_register_all();
	av_register_all();
	
	printf("init ok\n");
	
	AVFormatContext *pAVFC = NULL;
	int nRt = 0;
	if((nRt = avformat_open_input(&pAVFC, "E:/ma.mp4", NULL, NULL)) != 0)
	{
		printf("open fail: %d\n", nRt);
	}
	
	
}
